#!/bin/sh
svn up
ruby script/custom/sweep.rb
ruby script/custom/min.rb
sudo mv /usr/local/nginx/conf/nginx.conf /usr/local/nginx/conf/nginx.conf.last
sudo cp config/nginx/nginx.conf /usr/local/nginx/conf/nginx.conf
sudo chown root:root /usr/local/nginx/conf/nginx.conf
sudo chmod 0755 /usr/local/nginx/conf/nginx.conf
sudo mongrel_rails start -d -p 5000 -e production
sudo /etc/init.d/nginx start
